<!DOCTYPE html>
<html lang="en">
<head>
	<{include file="header.html"}>
	<title>添加课程分类-课程分类-<{$user_data['school_name']}>-德安信会计在线教育平台</title>
	<script>
	$(function(){
		$("#btn_save").click(function(){
			$("form").submit();
		});
	})
	</script>
</head>
<body>
	<div class="wrap">
		<!--star left-->
		<div class="column">
			<{include file="left_menu.html"}>
		</div>
		<div id="ContMianBox">
			<!--star子栏目-->
            <div class="sub-colum">
                <div class="tit"><{$left_menu_min.menu}></div>
                <ul>
                    <{foreach from=$left_menu_min.list item=item}>
                    <li <{if $item['url'] == $left_menu_min.curr}>class="curr"<{/if}>><a href="<{$item['url']}>"><{$item['name']}></a></li>
                    <{/foreach}>
                </ul>
            </div>
            <!--end子栏目-->
			<!--end left-->
			<div class="container narrow">
			    <!--star conter-->
			    <div class="cetContent">
						<div class="tit p-lr20">
						    <span ><a href="/course_banke">面授课</a></span>
						<span><a href="/offline_course">面授课科目</a></span>
						<span class="curr"><a href="/offline_course/cate">面授课分类</a></span>
						</div>
					<!--star内容区域-->
					<div class="mainScroll">
					    <div class="mainContainer line-all">

					        <div class="tabMainCont">

					            <!--star 编辑基本信息-->
					            <div class="tabItem step-02">

									<form method="post" class="layui-form">
									<input type="hidden" name="id" value="<{if isset($id)}><{$id}><{/if}>">
									<div class="layui-form-item">
									 <label class="layui-form-label">分类名称：</label>
									 <div class="layui-input-block">
										 <input type="text" name="name" style="width: 500px;" value="<{if isset($name)}><{$name}><{/if}>" placeholder="请输入班级名称" required  lay-verify="required" autocomplete="off" class="layui-input">
										 <{if isset($name_err)}>
										<i class="layui-icon" style="font-size: 30px; color: red">&#x1007;</i>
										<span class="tip" style=" padding:2px 5px;"><{$name_err}></span>
										<{/if}>
									 </div>
									</div>
									<div class="layui-form-item">
										<label class="layui-form-label">排序：</label>
										<div class="layui-input-inline">
											<input type="number" lay-verify="number" name="sort" maxlength="3" value="<{if isset($sort)}><{$sort}><{/if}>" required lay-verify="required" placeholder="排序，数字越大排名越靠前" autocomplete="off" class="layui-input">


											<{if isset($sort_err)}>
												<i class="layui-icon" style="font-size: 30px; color: red">&#x1007;</i>
												<span class="tip" style=" padding:2px 5px;"><{$sort_err}></span>
												<{/if}>
										</div>
										<div class="layui-form-mid layui-word-aux"></div>

									</div>


									<div class="layui-form-item">
									 <div class="layui-input-block">
										 <button class="layui-btn" lay-submit lay-filter="*">立即提交</button>
										 <button type="reset" class="layui-btn layui-btn-primary">取消</button>
									 </div>
									</div>


					            </form>
					            </div>
					            <!--end 编辑基本信息-->

					        </div>


					    </div>
					</div>
					</div>
					<!--end内容区域-->

		    <!--end conter-->
		</div>


	</div>
</div>
<{include file="footer.html"}>
<script>
	layui.use('laydate', function(){
		var laydate = layui.laydate;

		var start = {
			min: laydate.now(-30)
			,max: laydate.now(+365)
			,istoday: false
			,choose: function(datas){
				end.min = datas; //开始日选好后，重置结束日的最小日期
				end.start = datas //将结束日的初始值设定为开始日
			}
		};

		var end = {
			min: laydate.now()
			,max: laydate.now(+365)
			,istoday: false
			,choose: function(datas){
				start.max = datas; //结束日选好后，重置开始日的最大日期
			}
		};

		document.getElementById('LAY_demorange_s').onclick = function(){
			start.elem = this;
			laydate(start);
		}
		document.getElementById('LAY_demorange_e').onclick = function(){
			end.elem = this
			laydate(end);
		}

	});
</script>

</body>
</html>
